<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<title>公会知识管理</title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<link media="screen" rel="stylesheet" href="../style/colorbox.css" />
<script type="text/javascript" src="/js/show.js"></script>
<script language="javascript" src="/js/public.js"></script>
<script src="/js/jquery-1.4.2.min.js"></script>
<link type="text/css" rel="stylesheet" href="../style/datepicker.css"/>
<script src="/js/jquery.colorbox.js"></script>
<script>
		$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			$("a[rel='example3']").colorbox({iframe:true, transition:"none", width:"550", height:"600"});
			$("a[rel='example4']").colorbox({iframe:true, transition:"none", width:"600", height:"500"});
		});
	</script>
</head>
<body class="indexbody">
	<#assign a=0>
  	<#assign b=0>
  	<#assign c=0>
  	<#list allPower?if_exists as power>
  		<#if power?number == 226>
  			<#assign a=a+1>
  		</#if>
  		<#if power?number == 227>
  			<#assign b=b+1>
  		</#if>
  		<#if power?number == 228>
  			<#assign c=c+1>
  		</#if>
  	</#list>
<div id="Content">
  <div style="width:100%; ">
  <div urlvalue="Oasp2803" functionid="FUNC00004" urlname="公告" recordcount="5" minflg="0" class="DesktopBlock" id="FUNC00004">
  <div id="Block">
          <div id="BlockHead">
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td>公会知识列表</td> 
                  <td width="22"></td>
                </tr>
              </tbody>
            </table>
          </div>
          <form method="post" action="knowledgeIndex.action" id="knowledgeIndex" name="knowledgeIndex">
          <div class="BlockMemo" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
          
             
              <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f9f9f9">
  <tr>
    <td height="50"><div class="MbBox ">
      <ul class="right">
        <li class="mar-l15 height-30"><select name="orderBy" id="orderByName" onChange="document.knowledgeIndex.submit();" class="background-zi">
          <option  value="" selected>选择排序</option>
          <option value="id-UP" <#if orderBy?default("")="id-UP">selected</#if> >ID-升↑

            <option value="id-DOWN" <#if orderBy?default("")="id-DOWN">selected</#if> >ID-降↓
			
			<option value="release_time-UP" <#if orderBy?default("")="release_time-UP">selected</#if> >发布日期-升↑
			
			<option value="release_time-DOWN" <#if orderBy?default("")="release_time-DOWN">selected</#if>>发布日期-降↓
          </select> </li>
        </ul>
     
      <ul >
       <li class="mar-l5 height-30">
      查询时间段：
        <input  id="id_startDate" name="startDate" type="text" value="${startDate?default('')}"  size="15" readonly="true" style="height:18px;" class="ipticon" />
      -
      <input id="id_backDate" name="endDate" type="text" value="${endDate?default('')}"  readonly="true" style="height:18px;" class="ipticon" size="15" />
      </li>
        <li class="w120px text-ar" style=" height:30px;line-height:30px;"><select name="paraName" id="paraName"class="background-zi se-po">
          <option value="" selected>-选择条件名称-</option>
    <option value="id" <#if paraName?default("")=="id">selected</#if>>ID
    
    <option value="knowledge_title" <#if paraName?default("")=="knowledge_title">selected</#if>>标题
    
    <option value="release_name" <#if paraName?default("")=="release_name">selected</#if>>发布人
    
    <option value="organization_name" <#if paraName?default("")=="organization_name">selected</#if>>所属机构
          </select></li>
        <li class="mar-l5 height-30"><input name="paraVal" id="paraVal" style="height:22px;  background:#CCC;vertical-align:middle" type="text" />
          </li>
        <li class="mar-l5 height-30"><div class="yuding_btn">
          <!-- 搜索按钮  -->
          <span><span class="xp-b-leftSubmit2"><!-- --></span>
            <a id="uw_flight_submit_lnk" class="xp-b-submit2" href="#" onclick="javascript:knowledgeIndex.submit();">搜索</a> 
            <span class="xp-b-rightSubmit2"><!-- --></span></span>
          </div></li>
          </ul>
		</div>
	  </td>
    </tr>
</table>

           </div>
           <div id="BlockDetail">
          <table border="0" cellpadding="1" cellspacing="1" width="100%" bgcolor="#f9f9f9">
<tbody><tr>
    <td align="center" bgcolor="#EAEAEA" height="30" width="3%">序号</td>
    <td align="center" bgcolor="#EAEAEA" width="8%">标题</td>
    <td align="center" bgcolor="#EAEAEA" height="30" width="3%">发布人</td>
    <td align="center" bgcolor="#EAEAEA" width="8%">发布时间</td>
    <td align="center" bgcolor="#EAEAEA" width="10%">所属机构</td>
    <td width="20%" height="30" align="center" bgcolor="#EAEAEA">操作<#if a==0>
    		<font color="#777777">[添加]</font>
    	<#else>[<a rel='example3' href="knowledgeAddLoad.action">+添加</a>]</#if></td>
</tr>
                                          
<#list knowledgeManageList?if_exists as knowList>                                          
<tr>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="30">${knowList.id?default(0)}
    </td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${knowList.knowledge_title?default('')}</td>

    
    
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${knowList.release_name?default('')}</td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${knowList.release_time?datetime?string("yyyy-MM-dd HH:mm:ss")}</td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25"><font color="green">${knowList.organization_name?default('')}</font></td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25"><table border="0" cellpadding="0" cellspacing="0" width="200">
    <tbody>
      <tr>
        <td align="center" height="20">
          <a href="queryKnowledge.action?id=${knowList.id?default(0)}" >查看</a>
          <#if b==0>
    		 <font color="#777777">删除</font>
    	  <#else>
          	<a href="#" onclick="openDeleteDialog('delKnowledge.action?id=${knowList.id?default(0)}&knowledgeTitle=${knowList.knowledge_title?default('')}','您确定要删除${knowList.knowledge_title?default('')}的知识吗？')">删除</a>
          </#if>
          <#if c==0>
    		<font color="#777777">修改</font>
    	  <#else>
          	<a rel="example3" href="editKnowledgeLoad.action?id=${knowList.id?default(0)}">修改</a>
          </#if>
          </td>
        </tr>
        </tbody></table>
    </td>
    </tr>
    </#list>
									  </tbody></table>
                                      <div id="BlockFoot">
              <div class="left"><span class="STYLE10">第<span class="h2-red">${page}</span>页/共<span class="h2-red">${intPageCount}</span>页,总计<span class="h2-red">${intRowCount}</span>条记录</span></div>
												
<div class="right"><span class="STYLE10"> 
<#if page gt 1 > [<a href="knowledgepagelist.action?page=1">首页</a>]<#else> [首页]</#if> 
<#if page gt 1 >[<a href="knowledgepagelist.action?page=${page-1}">上一页</a>]<#else>[上一页]</#if>
<#if page lt intPageCount >[<a href="knowledgepagelist.action?page=${page+1}">下一页</a>] <#else>[下一页]</#if>
<#if page lt intPageCount >[<a href="knowledgepagelist.action?page=${intPageCount}">尾页</a>] <#else>[尾页]</#if>
转向<select id="page" name="page" onChange="document.knowledgeIndex.submit();;">
      <#assign p=intPageCount>
      <#if p==0>
      <option value='0' selected>1</option>
      <#else>
      <#list 1..p as j>
      <option value="${j}"<#if page==j>selected</#if>>${j}</option>

      </#list>
      </#if></select> 页 </span></div>
            </div>
           </div> 
           </form>
      </div>
        </div>
      </div>
  </div>
    <!--日历js-->
<script type="text/javascript" src="../js/mgtool.js"></script>
<script type="text/javascript" src="../js/DatePicker.js"></script>
<script type="text/javascript" src="../js/h_index_2012.js"></script>
</body>
</html>